import request from "./request";
//登录
export const getLoginApi = (data: string) => request.post("/login", data);
//列表
export const getArticleApi = () => request.get("/article/list");
//添加
export const getAddApi = (data: any) => request.post("/article", data);
//搜索
export const getSeachApi = (keyword:string) => request.get("/article/list",{
    params:{keyword}
});